package com.yjd.bi.user.service;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.bi.user.model.UserCustomerServiceModel;

import java.util.List;

/**
 * <b>description</b>：用户与客服关联表业务接口<br>
 * <b>time</b>：2018-08-20 11:40:04 <br>
 * <b>author</b>：  yangchangyan@yijiedai.com
 */
public interface IUserCustomerServiceService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public UserCustomerServiceModel insert(UserCustomerServiceModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(UserCustomerServiceModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param user_id
	 * @return
	 * @throws Exception
	 */
	public int delete(long user_id) throws Exception;

	/**
	 * 批量写入
	 * @param ucsm
	 * @throws Exception
	 */
	public void insertBatch(List<UserCustomerServiceModel> ucsm) throws Exception;

}
